﻿@inherits AntDesignTestBase
@code {
    [Theory]
    [InlineData(ButtonGroupSize.Small, "-sm")]
    [InlineData(ButtonGroupSize.Large, "-lg")]
    public void Size_is_applied(ButtonGroupSize size, string expectedCssClass)
    {
        var cut = Render<ButtonGroup>(@<ButtonGroup Size="@size">
            <Button>Test</Button>
    </ButtonGroup>
    );
        string classsAttribute = cut.Find("div").GetAttribute("class")!;
        classsAttribute.Should().Contain(expectedCssClass);
        cut.Instance.Size.Should().Be(size);
    }

}
